package com.tarena.lbs.business.dao.repository;

import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.param.BusinessUpdateStatusParam;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessVO;
import com.tarena.lbs.business.pojo.vo.StoreVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BusinessRepository {

    void insertBusiness(BusinessPO businessPO);

    BusinessPO getBusinessByName(String businessName);

    List<BusinessPO> selectPage(BusinessQuery query);

    BusinessPO getBusinessById(Integer businessId);

    List<StoreVO> getStoreByBusinessId(Integer businessId);

    BusinessPO selectById(Integer businessId);

    void updateById(BusinessPO po);

    void updateStatus(BusinessUpdateStatusParam param);
}
